package com.gym.exception;

public class MallException extends RuntimeException {

    private static final long serialVersionUID = 1L;
    private  Integer code;

    public MallException() {}

    public MallException(String message) {
        super(message);
    }

    public MallException(String message,Integer code) {
        super(message);
        this.code=code;
    }

    public Integer getCode() {
        return code;
    }
}
